import request from '@/utils/request';

// 获取短信设置列表
export async function getMsmTable(params) {
  return request('/sms/templates', {
    params,
    method:'get'
  });
}
// 编辑模板
export async function handleUpdateData (params) {
  return request('/sms/template/update', {
    method: 'POST',
    params
  });
}
// 新增短信模板
export async function addData (params) {
  return request('/sms/template/save', {
    method: 'POST',
    params
  });
}

// 启用/停用短信模板
export async function changeStatus(params) {
  return request('/sms/template/updatestate', {
    method: 'POST',
    params,
  });
}
// 删除
export async function removeData(params) {
  return request('/sms/template/delete', {
    method: 'POST',
    params,
  });
}